package com.atguigu.p2;
/*
 * 封装客户信息
 */
public class Customer  {

	private String name;//客户姓名
	private char gender;//性别
	private int age;//年龄
	private String phone;//电话号码
	private String email;//电子邮箱
	
	//空参构造器
	public Customer()
	{
		
	}
	
	public Customer(String name,char gender,int age,String phone,String email)
	{
		this.name = name;
		this.gender = gender;
		this.age = age;
		this.phone = phone;
		this.email = email;
	}
	
	//方法
	public void setName(String name)
	{
		this.name = name;
	}
	
	public String getName()
	{
		return name;
	}
	
	public void setGender(char gender)
	{
		this.gender = gender;
	}
	
	public char getGender()
	{
		return gender;
	}
	
	public void setAge(int age)
	{
		this.age = age;
	}
	
	public int getAge()
	{
		return age;
	}
	
	public void setPhone(String phone)
	{
		this.phone = phone;
	}
	
	public String getPhone()
	{
		return phone;
	}
	
	public void setEmail(String email)
	{
		this.email = email;
	}
	
	public String getEmail()
	{
		return email;
	}
	
	@Override
	public String toString() {
		
		return "\t"+name+"\t"+gender+"\t"+age+"\t"+phone+"\t"+email;
	}
}
